/*
 * @Author: zhangfeng
 * @Date: 2023-12-01 11:29:29
 * @LastEditTime: 2024-01-18 18:04:43
 * @LastEditors: zhangfeng
 * @Description:
 * @FilePath: \manager\managersystem\src\api\login.ts
 * © 2023 张峰，All rights reserved.
 */
import request from '../utils/request';

/**
 * @description: 登录接口
 * @param {LoginData} data
 * @return {*}
 */
export const login = (data: LoginData) => {
	return request({
		url: '/users/login',
		method: 'post',
		data: data,
	});
};

export const getUserInfo = () => {
	return request<GetuserInfo>({
		url: '/users/getUserInfo',
		method: 'get',
	});
};
